var express = require("express");
const UserController = require("../../controllers/UserController");
const passport = require("passport");
var UserRouter = express.Router();

UserRouter.post("/register", UserController.register);
UserRouter.post("/login", UserController.login);
UserRouter.get(
  "/current",
  passport.authenticate("jwt", { session: false }),
  UserController.userInfo
);

module.exports = UserRouter;
